#ifndef VECTORATTRIBUTETABLE_H
#define VECTORATTRIBUTETABLE_H

#include <QWidget>
#include "ui_VectorAttributeTable.h"
#include <vector>

class VectorLayer;
class OGRLayer;

class VectorAttributeTable : public QWidget
{
	Q_OBJECT
	typedef long FeatureId;
public:
	VectorAttributeTable(VectorLayer* layer, QWidget *parent = 0);
	~VectorAttributeTable();
private:
	void initialize();
private slots:
	void resetTable(int scrollBarValue);
private:
	Ui::VectorAttributeTable ui;
	VectorLayer*	_vectorLayer;
	OGRLayer*		_ogrLayer;
	std::vector<FeatureId>	_featureIds;
	int _tablePageRowCount;     
};

#endif // VECTORATTRIBUTETABLE_H
